package com.example.AIstudy.exception;

public class AIstudyException extends Exception{
    public enum ErrorType {LOGIN_ERROR,INSERT_ERROR,UPDATE_ERROR,DELETE_ERROR,QUERY_ERROR,IO_EXCEPTION}
    private ErrorType errorType;

    public AIstudyException(ErrorType errorType, String message){
        super(message);
        this.errorType =errorType;
    }

    public ErrorType getErrorType() {
        return errorType;
    }
}
